package abstract_;

/**
 * @classname:Test
 * @description:
 * @author: Mr.Z
 * @date: 2020/12/3 19:02
 * @version: 0.1
 * @since:1.8
 */
public class Test {
    public static void main(String[] args) {
//        MyAbstracta myAbstracta = new MyAbstractb();
//        myAbstracta.a();
        //匿名内部类对象
        MyAbstracta myAbstracta = new MyAbstracta() {
            @Override
            public void a() {
                System.out.println("a");
            }
            String a = "";
            public void d(){
                System.out.println("d");
            }
        };

        myAbstracta.a();

    }
}
